package coba.mailing.procedure;

import org.apache.commons.mail.Email;
import org.apache.commons.mail.EmailException;

public class AddAllCC {

	public static void addAllCC(Email email, String ccs) throws EmailException {

		if (ccs.contains(",")) {
			for (String cc : ccs.split(",")) {
				email.addCc(cc.trim());
			}
		}
		else
			email.addCc(ccs.trim());

	}

}
